using System;
using System.Collections.Generic;
using System.Text;

namespace EBookReader.Library.Data
{
    [Serializable]
    public class BookChapter : IDisposable
    {
        [NonSerialized]
        private string title;
        [NonSerialized]
        private string url;
        [NonSerialized]
        private string content;

        public BookChapter()
        {
            title = string.Empty;
            content = string.Empty;
            url = string.Empty;
        }

        public void Dispose()
        {
            title = null;
            content = null;
            url = null;
        }

        public string Title
        {
            get { return title; }
            set { title = value; }
        }

        public string Content
        {
            get { return content; }
            set { content = value; }
        }

        public string Url
        {
            get { return url; }
            set { url = value; }
        }
    }
}
